<?php

class sort_by_weight_param extends stored_param_adaper_l_search{
    public function  get_order_line() {
        $order = $this->is_valid_order_direction($this->get_option()) ? $this->get_option() : "ASC";
        return "pd.weight $order";
    }
    public function  get_join_line() {
        return "LEFT OUTER JOIN product_dimensions pd ON pd.product_id=products.id";
    }
}
?>